package com.yl.auth.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 刘致远
 * @datetime 2023/6/16 14:36
 * @description 类对象
 */
@Data
public class LaorenVo implements Serializable {
    /**
     * 药品表字段
     */
    @ApiModelProperty("药品id")
    private Integer id;
    @ApiModelProperty("登记时间")
    @TableField(value = "dengji_time")
    private Date dengjiTime;

    /**
     * 老人表字段
     */
    @ApiModelProperty("老人外键id")
    private Integer lid;
    @ApiModelProperty("老人姓名")
    private String name;
    @ApiModelProperty("老人用药品种数")
    private Integer yaopinNumber;
    @ApiModelProperty("老人身份证号")
    @TableField(value = "id_number")
    private String idNumber;
    @ApiModelProperty("床位外键id")
    @TableField(value = "bed_id")
    private Integer bed_id;
    @ApiModelProperty("房间外键id")
    @TableField(value = "room_id")
    private Integer room_id;
    private String gender;
    @TableField(exist = false)
    private String chuangwei;
    private String avatar;
    private String nationality;
    private String origin;
    @TableField(value = "birth_date")
    private Date birthDate;
    private String address;
    private String contact;
    private String dengji;
    @TableField(value = "admission_date")
    private Date admissionDate;

    /**
     * 护工表字段
     */
    @ApiModelProperty("护工外键id")
    private Integer hid;
    @ApiModelProperty("护工姓名")
    private String hname;

    /**
     * 家属表字段
     */
    @ApiModelProperty("家属外键id")
    private Integer jid;
    @ApiModelProperty("家属姓名")
    private String jname;
    private  String jingbanren;

    /**
     * 药品字段
     */
    @ApiModelProperty("药品id")
    @TableField(value = "id")
    private Integer yid;

    @ApiModelProperty("药品名称")
    @TableField(value = "name")
    private String yname;

    @ApiModelProperty("药品数量")
    private String number;

    @ApiModelProperty("药品有效期")
    private LocalDate youxiaoTime;

    @ApiModelProperty("剂量")
    private String jiliang;

    @ApiModelProperty("服法")
    private String fufa;

    /**
     * 房间字段
     */
    @ApiModelProperty("房间id")
    @TableField(value = "id")
    private Long fid;
    @ApiModelProperty("房间号")
    @TableField(value = "room_no")
    private Integer roomNo;

    /**
     * 床位字段
     */
    @ApiModelProperty("床位id")
    @TableField(value = "id")
    private Long cid;
    @ApiModelProperty("床位号")
    @TableField(value = "bed_no")
    private String bedNo;


    /**
     * 图片
     */
    private String tupian;

}
